<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template index/header}
    <div class="subnav">
        <a href="">首页</a> &gt; <a href="">客户管理</a> &gt; <a href="">等级管理</a>
    </div>
    <div class="main-inner">
        <div class="x-body">
            <div class="layui-main">
				<form class="layui-form" action="?" method="post">
					<input type="hidden" name="m" value="{$m}" />
					<input type="hidden" name="c" value="{$c}" />
					<input type="hidden" name="a" value="{$a}" />
					<input type="hidden" name="data[id]" value="{$info['id']}"/>
					<div class="layui-form-item">
						<label class="layui-form-label">等级：</label>
						<div class="layui-input-inline">
							<input type="text" name="data[level]" required="true" value="{$info['level']}" placeholder="等级" autocomplete="off" class="layui-input">
						</div>
						<div class="layui-form-mid layui-word-aux"></div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">头衔：</label>
						<div class="layui-input-inline">
							<input type="text" name="data[title]" value="{$info['title']}" placeholder="头衔" autocomplete="off" class="layui-input">
						</div>
						<div class="layui-form-mid layui-word-aux"></div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">升级所需积分：</label>
						<div class="layui-input-inline">
							<input type="text" name="data[group_point]" value="{$info['group_point']}" placeholder="升级所需积分" autocomplete="off" class="layui-input">
						</div>
						<div class="layui-form-mid layui-word-aux"></div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">升级奖励：</label>
						<div class="layui-input-inline">
							<input type="text" name="data[reward]" value="{$info['reward']}" placeholder="升级奖励" autocomplete="off" class="layui-input">
						</div>
						<div class="layui-form-mid layui-word-aux"></div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label">跳级奖励：</label>
						<div class="layui-input-inline">
							<input type="text" name="data[overstep]" value="{$info['overstep']}" placeholder="跳级奖励" autocomplete="off" class="layui-input">
						</div>
						<div class="layui-form-mid layui-word-aux"></div>
					</div>
					
					<div class="layui-form-item">
						<label class="layui-form-label">栏目状态:</label>
						<div class="layui-input-inline">
							{if $info}
								<input type="radio" name="data[status]" value="1" title="开启" {if $info['status']} checked="checked" {/if}>开启
    							<input type="radio" name="data[status]" value="0" title="关闭" {if !$info['status']} checked="checked" {/if}>关闭
							{else}
    							<input type="radio" name="data[status]" value="1" title="开启" checked="checked">开启
    							<input type="radio" name="data[status]" value="0" title="关闭">关闭
							{/if}
						</div>
					</div>
					<div class="layui-form-item">
						<label for="" class="layui-form-label"></label>
						<div class="layui-input-inline">
							<a class="layui-btn" href='{U('user/level')}'>返回</a>
							<button class="layui-btn" type="submit">确定</button>
						</div>
					</div>
				</form>
			</div>
        </div>
    </div>
        
{template index/footer}
